package com.kingdee.eas.minghua.contract.app;

import org.apache.log4j.Logger;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.minghua.contract.STransfernoticeInfo;
import com.kingdee.eas.minghua.contract.TransfernoticeInfo;
import com.kingdee.eas.minghua.jczlwh.mj.SfshEnum;

public class STransfernoticeControllerBean extends AbstractSTransfernoticeControllerBean
{
    private static Logger logger =
        Logger.getLogger("com.kingdee.eas.minghua.contract.app.STransfernoticeControllerBean");
    protected void _unAudit(Context ctx, IObjectValue model)throws BOSException {
		super._unAudit(ctx, model);
		STransfernoticeInfo info = (STransfernoticeInfo)model;
		info.setState(SfshEnum.save);
		info.setAuditor(null);
		try {
			_update(ctx,new ObjectUuidPK(info.getId()),info);
		} catch (EASBizException e) {
			e.printStackTrace();
		}
	}
	protected void _audit(Context ctx, IObjectValue model) throws BOSException {
		super._audit(ctx, model);
		STransfernoticeInfo info = (STransfernoticeInfo)model;
		info.setState(SfshEnum.yes);
		info.setAuditor(null);
		try {
			_update(ctx,new ObjectUuidPK(info.getId()),info);
		} catch (EASBizException e) {
			e.printStackTrace();
		}
	}
}